import request from '@/router/axios';

export const getPage = (page, params) => {
  return request({
    url: '/api/uic-system/fillsite/page',
    method: 'get',
    params: {
      ...page,
      ...params,
    }
  })
}

export const getSyncPage = async (page, params) => {
  return await request({
    url: '/api/uic-system/fillsite/page',
    method: 'get',
    params: {
      ...page,
      ...params,
    }
  })
}

export const submit = (form) => {
  return request({
    url: '/api/uic-system/fillsite/submit',
    method: 'post',
    data: {
      ...form
    }
  })
}

export const remove = (id) => {
  return request({
    url: '/api/uic-system/fillsite/remove',
    method: 'post',
    params: {
      ids: id
    }
  })
}


export const detail = (id) => {
  return request({
    url: '/api/uic-system/fillsite/detail',
    method: 'get',
    params: {
      id
    }
  })
}
